<?$path = $_SERVER['REQUEST_URI'];?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Home solutions</title>
    <link rel="stylesheet" type="text/css" href="/css/style2.css">
    <script src="/js/jquery-1.6.2.min.js"></script>
    <script src="/js/mobilyslider.js"></script>
    <script src="/js/init.js"></script>
    <!-- load Galleria -->
    <script src="/js/galleria-1.2.5.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/galleria.classic.css">
    


</head>
<body>

<!--Буферизация-->
<div style="display: none"><img src="/images/button.png"></div>
<div class="container">
<div id="wrap_loading" style="display: none;">
    <span></span>
    <img src="/images/ajax-loader.gif" alt="Loading" />

</div>
    <div class="header">
        <div class="wrap" style="height:210px">

                     <div class="telephone">Follow us: <span>416.904.2871</span></div>
                     <div class="logo"><a href="/"><img src="/images/logo.png"></a></div>
                     <div class="brand">Home Solutions</div>

                <?=$this->partial('partials/navigations.phtml',array('menu'=>$this->menu))?>
                <div class="blue">
                    <div class="buttons"></div>
                    <div class="lozung"><h2>Here must be your beautiful  slogan!</h2></div>

                </div>

        </div>
    </div>

    <div class="main">
             <div class="wrap">

              <?if ($path=='/'):?>
              <?= $this->partial('partials/rotator.phtml',array('pictures'=>$this->pictures))?>
                 <div style="clear: both;"></div>
              <?endif;?>
                 <div class="aside">
                     <?= $this->partial('partials/projects.phtml', array('projects' => $this->projects)) ?>

                 </div>
                 <div class="content">
                     <?= $this->layout()->content?>
                 </div>
                 <div style="clear: both;"></div>
                 <div class="footer">Copyright © 2011 Home Solutions. All rights reserved.</div>
             </div>
    </div>



</div>
<?
/*Top menu&right menu  Активный пункт*/

if ($path == '/') $page='1';
if ($path == '/services') $page='2';
if ($path == '/aboutus') $page='3';
if ($path == '/contactus') $page='4';
if ($path == '/gallery') $page='5';
if ($path == '/reviews') $page='6';
if ($path == '/allprojects') $page='7';

if (isset($page)):
?>

<script>
 $(function(){
     $('.navigation li:nth-child(<?=$page?>)').addClass('current');
 });
</script>
    <?endif;?>
</body>
</html>


